<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>文档转换后内容</title>
    <!-- 引入 Chart.js 库用于图表绘制 -->
    <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 20px;
        }

        h1 {
            font-size: 24px;
        }

        h3 {
            font-size: 20px;
        }

        table {
            border-collapse: collapse;
            width: 100%;
        }

        th,
        td {
            border: 1px solid #ddd;
            padding: 8px;
            text-align: left;
        }

        th {
            background-color: #f2f2f2;
        }

        canvas {
            max-width: 600px;
            margin: 20px auto;
        }
    </style>
</head>

<body>
    <h1>文档转换后内容.md</h1>

    <h3>一、投标报价总体情况</h3>
    <p>本项目为长春华翔车顶二层钢平台工程，投标总价为 490499.99 元，包含建筑工程、通风工程、电气设备安装工程。具体如下：</p>
    <table>
        <thead>
            <tr>
                <th>单位工程名称</th>
                <th>金额(元)</th>
                <th>暂估价(元)</th>
                <th>安全文明施工费(元)</th>
                <th>规费(元)</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>建筑工程</td>
                <td>426439.18</td>
                <td>0</td>
                <td>15238.74</td>
                <td>-</td>
            </tr>
            <tr>
                <td>通风工程</td>
                <td>12454.45</td>
                <td>0</td>
                <td>247.38</td>
                <td>-</td>
            </tr>
            <tr>
                <td>电气设备安装工程</td>
                <td>51606.36</td>
                <td>0</td>
                <td>733.96</td>
                <td>-</td>
            </tr>
            <tr>
                <td>合计</td>
                <td>490499.99</td>
                <td>0</td>
                <td>16220.08</td>
                <td>-</td>
            </tr>
        </tbody>
    </table>
    <canvas id="totalProjectChart"></canvas>

    <h3>二、各单位工程费用分析</h3>

    <h4>1. 建筑工程</h4>
    <h5> - 费用构成</h5>
    <table>
        <thead>
            <tr>
                <th>汇总内容</th>
                <th>金额(元)</th>
                <th>占比（四舍五入保留两位小数）</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>分部分项及单价措施费</td>
                <td>375989.87</td>
                <td>88.17%</td>
            </tr>
            <tr>
                <td>总价措施费</td>
                <td>15238.74</td>
                <td>3.57%</td>
            </tr>
            <tr>
                <td>税金</td>
                <td>35210.57</td>
                <td>8.26%</td>
            </tr>
            <tr>
                <td>投标报价合计</td>
                <td>426439.18</td>
                <td>100%</td>
            </tr>
        </tbody>
    </table>
    <canvas id="buildingCostChart"></canvas>

    <h5> - 分部分项工程费用</h5>
    <table>
        <thead>
            <tr>
                <th>分部工程名称</th>
                <th>金额(元)</th>
                <th>占分部分项及单价措施费比例（四舍五入保留两位小数）</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>拆除工程</td>
                <td>35537.69</td>
                <td>9.45%</td>
            </tr>
            <tr>
                <td>混凝土及钢筋混凝土工程</td>
                <td>31887.82</td>
                <td>8.48%</td>
            </tr>
            <tr>
                <td>金属结构工程</td>
                <td>175489.58</td>
                <td>46.67%</td>
            </tr>
            <tr>
                <td>门窗工程</td>
                <td>34347.58</td>
                <td>9.13%</td>
            </tr>
            <tr>
                <td>楼地面工程</td>
                <td>15395.7</td>
                <td>4.09%</td>
            </tr>
            <tr>
                <td>墙面</td>
                <td>35437.71</td>
                <td>9.42%</td>
            </tr>
            <tr>
                <td>天棚</td>
                <td>25800</td>
                <td>6.86%</td>
            </tr>
            <tr>
                <td>其他</td>
                <td>10307.98</td>
                <td>2.74%</td>
            </tr>
        </tbody>
    </table>
    <canvas id="buildingSubCostChart"></canvas>

    <h4>2. 通风工程</h4>
    <h5> - 费用构成</h5>
    <table>
        <thead>
            <tr>
                <th>汇总内容</th>
                <th>金额(元)</th>
                <th>占比（四舍五入保留两位小数）</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>分部分项及单价措施费</td>
                <td>11178.72</td>
                <td>90.07%</td>
            </tr>
            <tr>
                <td>总价措施费</td>
                <td>247.38</td>
                <td>1.99%</td>
            </tr>
            <tr>
                <td>税金</td>
                <td>1028.35</td>
                <td>8.26%</td>
            </tr>
            <tr>
                <td>投标报价合计</td>
                <td>12454.45</td>
                <td>100%</td>
            </tr>
        </tbody>
    </table>
    <canvas id="ventilationCostChart"></canvas>

    <h5> - 分部分项工程费用</h5>
    <p>通风工程主要包括轴流通风机、碳钢通风管道、柔性接口等项目，其中轴流通风机占通风工程分部分项费用的 24.83%（2720.13÷10953.83），碳钢通风管道占 27.45%（3006.67÷10953.83）。</p>
    <canvas id="ventilationSubCostChart"></canvas>

    <h4>3. 电气设备安装工程</h4>
    <h5> - 费用构成</h5>
    <table>
        <thead>
            <tr>
                <th>汇总内容</th>
                <th>金额(元)</th>
                <th>占比（四舍五入保留两位小数）</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>分部分项及单价措施费</td>
                <td>46611.32</td>
                <td>90.32%</td>
            </tr>
            <tr>
                <td>总价措施费</td>
                <td>733.96</td>
                <td>1.42%</td>
            </tr>
            <tr>
                <td>税金</td>
                <td>4261.08</td>
                <td>8.26%</td>
            </tr>
            <tr>
                <td>投标报价合计</td>
                <td>51606.36</td>
                <td>100%</td>
            </tr>
        </tbody>
    </table>
    <canvas id="electricalCostChart"></canvas>

    <h5> - 分部分项工程费用</h5>
    <p>强电系统占分部分项及单价措施费的 83.85%（39085.93÷46611.32），弱电桥架及配管占 14.71%（6858.16÷46611.32）。</p>
    <canvas id="electricalSubCostChart"></canvas>

    <h3>三、价格合理性分析</h3>
    <p>因缺乏同类项目参考数据，无法直接判断价格是否合理。但从各单位工程费用构成来看，税金占比在各单位工程中较为稳定，约为 8.26%，符合一般的税费标准。安全文明施工费按规定计取，在各单位工程中也有明确体现。各分部分项工程的综合单价需结合项目实际情况、市场行情以及施工工艺要求进一步评估。</p>

    <script>
        // 投标报价总体情况柱状图
        const totalProjectChartCtx = document.getElementById('totalProjectChart').getContext('2d');
        new Chart(totalProjectChartCtx, {
            type: 'bar',
            data: {
                labels: ['建筑工程', '通风工程', '电气设备安装工程'],
                datasets: [{
                    label: '金额(元)',
                    data: [426439.18, 12454.45, 51606.36],
                    backgroundColor: [
                        'rgba(255, 99, 132, 0.2)',
                        'rgba(54, 162, 235, 0.2)',
                        'rgba(255, 205, 86, 0.2)'
                    ],
                    borderColor: [
                        'rgba(255, 99, 132, 1)',
                        'rgba(54, 162, 235, 1)',
                        'rgba(255, 205, 86, 1)'
                    ],
                    borderWidth: 1
                }]
            },
            options: {
                scales: {
                    y: {
                        beginAtZero: true
                    }
                }
            }
        });

        // 建筑工程费用构成饼图
        const buildingCostChartCtx = document.getElementById('buildingCostChart').getContext('2d');
        new Chart(buildingCostChartCtx, {
            type: 'pie',
            data: {
                labels: ['分部分项及单价措施费', '总价措施费', '税金'],
                datasets: [{
                    label: '金额(元)',
                    data: [375989.87, 15238.74, 35210.57],
                    backgroundColor: [
                        'rgba(255, 99, 132, 0.2)',
                        'rgba(54, 162, 235, 0.2)',
                        'rgba(255, 205, 86, 0.2)'
                    ],
                    borderColor: [
                        'rgba(255, 99, 132, 1)',
                        'rgba(54, 162, 235, 1)',
                        'rgba(255, 205, 86, 1)'
                    ],
                    borderWidth: 1
                }]
            }
        });

        // 建筑工程分部分项工程费用饼图
        const buildingSubCostChartCtx = document.getElementById('buildingSubCostChart').getContext('2d');
        new Chart(buildingSubCostChartCtx, {
            type: 'pie',
            data: {
                labels: ['拆除工程', '混凝土及钢筋混凝土工程', '金属结构工程', '门窗工程', '楼地面工程', '墙面', '天棚', '其他'],
                datasets: [{
                    label: '金额(元)',
                    data: [35537.69, 31887.82, 175489.58, 34347.58, 15395.7, 35437.71, 25800, 10307.98],
                    backgroundColor: [
                        'rgba(255, 99, 132, 0.2)',
                        'rgba(54, 162, 235, 0.2)',
                        'rgba(255, 205, 86, 0.2)',
                        'rgba(75, 192, 192, 0.2)',
                        'rgba(54, 162, 235, 0.2)',
                        'rgba(255, 159, 64, 0.2)',
                        'rgba(255, 99, 132, 0.2)',
                        'rgba(255, 205, 86, 0.2)'
                    ],
                    borderColor: [
                        'rgba(255, 99, 132, 1)',
                        'rgba(54, 162, 235, 1)',
                        'rgba(255, 205, 86, 1)',
                        'rgba(75, 192, 192, 1)',
                        'rgba(54, 162, 235, 1)',
                        'rgba(255, 159, 64, 1)',
                        'rgba(255, 99, 132, 1)',
                        'rgba(255, 205, 86, 1)'
                    ],
                    borderWidth: 1
                }]
            }
        });

        // 通风工程费用构成饼图
        const ventilationCostChartCtx = document.getElementById('ventilationCostChart').getContext('2d');
        new Chart(ventilationCostChartCtx, {
            type: 'pie',
            data: {
                labels: ['分部分项及单价措施费', '总价措施费', '税金'],
                datasets: [{
                    label: '金额(元)',
                    data: [11178.72, 247.38, 1028.35],
                    backgroundColor: [
                        'rgba(255, 99, 132, 0.2)',
                        'rgba(54, 162, 235, 0.2)',
                        'rgba(255, 205, 86, 0.2)'
                    ],
                    borderColor: [
                        'rgba(255, 99, 132, 1)',
                        'rgba(54, 162, 235, 1)',
                        'rgba(255, 205, 86, 1)'
                    ],
                    borderWidth: 1
                }]
            }
        });

        // 通风工程分部分项工程费用饼图
        const ventilationSubCostChartCtx = document.getElementById('ventilationSubCostChart').getContext('2d');
        new Chart(ventilationSubCostChartCtx, {
            type: 'pie',
            data: {
                labels: ['轴流通风机', '碳钢通风管道'],
                datasets: [{
                    label: '占比',
                    data: [24.83, 27.45],
                    backgroundColor: [
                        'rgba(255, 99, 132, 0.2)',
                        'rgba(54, 162, 235, 0.2)'
                    ],
                    borderColor: [
                        'rgba(255, 99, 132, 1)',
                        'rgba(54, 162, 235, 1)'
                    ],
                    borderWidth: 1
                }]
            }
        });

        // 电气设备安装工程费用构成饼图
        const electricalCostChartCtx = document.getElementById('electricalCostChart').getContext('2d');
        new Chart(electricalCostChartCtx, {
            type: 'pie',
            data: {
                labels: ['分部分项及单价措施费', '总价措施费', '税金'],
                datasets: [{
                    label: '金额(元)',
                    data: [46611.32, 733.96, 4261.08],
                    backgroundColor: [
                        'rgba(255, 99, 132, 0.2)',
                        'rgba(54, 162, 235, 0.2)',
                        'rgba(255, 205, 86, 0.2)'
                    ],
                    borderColor: [
                        'rgba(255, 99, 132, 1)',
                        'rgba(54, 162, 235, 1)',
                        'rgba(255, 205, 86, 1)'
                    ],
                    borderWidth: 1
                }]
            }
        });

        // 电气设备安装工程分部分项工程费用饼图
        const electricalSubCostChartCtx = document.getElementById('electricalSubCostChart').getContext('2d');
        new Chart(electricalSubCostChartCtx, {
            type: 'pie',
            data: {
                labels: ['强电系统', '弱电桥架及配管'],
                datasets: [{
                    label: '占比',
                    data: [83.85, 14.71],
                    backgroundColor: [
                        'rgba(255, 99, 132, 0.2)',
                        'rgba(54, 162, 235, 0.2)'
                    ],
                    borderColor: [
                        'rgba(255, 99, 132, 1)',
                        'rgba(54, 162, 235, 1)'
                    ],
                    borderWidth: 1
                }]
            }
        });
    </script>
</body>

</html>